package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 通用短信发送日志表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("sys_sms_log")
@ApiModel(value = "SysSmsLog对象", description = "通用短信发送日志表")
public class SysSmsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户类型，1-前台用户，2-后台管理员")
    private Integer userType;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("接收短信手机号")
    private String phone;

    @ApiModelProperty("短信业务类型")
    private Integer businessType;

    @ApiModelProperty("自定义数据标识，按需与业务数据关联")
    private String businessId;

    @ApiModelProperty("短信签名")
    private String signName;

    @ApiModelProperty("阿里云短信模版编号")
    private String templateCode;

    @ApiModelProperty("阿里云短信模版参数")
    private String templateParam;

    @ApiModelProperty("发送结果，1-成功，0-失败")
    private Integer sendResult;

    @ApiModelProperty("发送失败错误代码")
    private String sendFailCode;

    @ApiModelProperty("发送失败原因描述")
    private String sendFailReason;

    @ApiModelProperty("阿里云返回业务ID")
    private String bizid;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
